var aone = document.querySelectorAll(".aone div");
var atwo = document.querySelectorAll(".atwo div");

for (var i = 0; i < aone.length; i++) {
    aone[i].index = i; //index是自定义属性，用来保存编号                 
    aone[i].onmouseover = function () {
        for (var i = 0; i < atwo.length; i++) {
            atwo[i].style.display = "none"; //先将内容全部隐藏                  
        }
        atwo[this.index].style.display = "block"; //当鼠标触发时再显示对应的内容    
        for (var i = 0; i < aone.length; i++) {
            //  one[i].style.background="none";        //将背景色设置为无                 
        }
        //  one[this.index].style.background="indianred";//切换鼠标接入按钮背景颜色
    };
};
